{include file="header.tpl" show_nav_info="no" title="个人信息"}
<div id="container">
{include file="Profile-sidebar.tpl"}
	<div id="content">
		<div class="page_block">
			<a name="basic"></a>
			<div class="page_block_title"><h2>基本信息</h2></div>
			<div class="page_block_body">
			<form action="?Profile-doUpdateBasic" method="post">
				<table class="info_tab">
	<tr><th>Email</th><td><input type="text" name="email" class="text" value="{$user.email}" /></td></tr>
	<tr><th>真实姓名</th><td><input type="text" name="truename" class="text" value="{$user.truename}" /></td></tr>
	<tr><th>性别</th><td>
		<input type="radio" name="sex" value="0" {if $user.sex==0} checked="true" {/if}/>女
		<input type="radio" name="sex" value="1" {if $user.sex==1} checked="true" {/if}/>男
	</td></tr>
	<tr><th>生日:{$birth}</th><td>
		{html_select_date start_year="-50" end_year="+0" prefix="Birth" time=$birth}
	</td></tr>
	<tr><th>所在省份</th><td><input type="text" name="home_province" class="text" value="{$user.home_province}" /></td></tr>
	<tr><th>所在城市</th><td><input type="text" name="home_city" class="text" value="{$user.home_city}" /></td></tr>
					<tr><td colspan="2" class="center">
						<input class="button" type="submit" name="submit" value="保存" />
						<input class="button" type="submit" name="submit" value="重填" />
					</td></tr>
				</table>
			</form>
			</div>
		</div>
		<div class="page_block">
			<a name="contact"></a>
			<div class="page_block_title"><h2>联系方式</h2></div>
			<div class="page_block_body">
			<form action="?Profile-doUpdateContact" method="post">
				<table class="info_tab">
	<tr><th>QQ</th><td><input type="text" name="qq_number" class="text" value="{$user.qq_number}" /></td></tr>
	<tr><th>MSN</th><td><input type="text" name="msn_account" class="text" value="{$user.msn_account}" /></td></tr>
	<tr><th>移动电话</th><td><input type="text" name="cellphone" class="text" value="{$user.cellphone}" /></td></tr>
	<tr><th>固定电话</th><td><input type="text" name="telephone" class="text" value="{$user.telephone}" /></td></tr>
	<tr><th>个人主页</th><td><input type="text" name="homepage" class="text" value="{$user.homepage}" /></td></tr>
					<tr><td colspan="2" class="center">
						<input class="button" type="submit" name="submit" value="保存" />
						<input class="button" type="submit" name="submit" value="重填" />
					</td></tr>
				</table>
			</form>
			</div>
		</div>
		<div class="page_block">
			<a name="school"></a>
			<div class="page_block_title"><h2>学校信息</h2></div>
			<div class="page_block_body">
			<form action="?Profile-doUpdateSchool" method="post">
				<table class="info_tab">
	<tr><th>用户类型</th><td>
		<select name="user_type">
			{html_options options=$user_types selected=$user.user_type}
		</select>
	</td></tr>
	<tr><th>所在学校</th><td>
		<select name="school_id">
			{html_options options=$schools selected=$user.school_id}
		</select>
	</td></tr>
	<tr><th>所在院系</th><td><input type="text" name="department_id" class="text" value="" /></td></tr>
	<tr><th>学历</th><td>
		<select name="degree">
			{html_options options=$degrees selected=$user.degree}
		</select>
	</td></tr>
					<tr><td colspan="2" class="center">
						<input class="button" type="submit" name="submit" value="保存" />
						<input class="button" type="submit" name="submit" value="重填" />
					</td></tr>
				</table>
			</form>
			</div>
		</div>
		<div class="page_block">
			<a name="work"></a>
			<div class="page_block_title"><h2>工作信息</h2></div>
			<div class="page_block_body">
			<form action="?Profile-doUpdateWork" method="post">
				<table class="info_tab">
	<tr><th>公司名称</th><td><input type="text" name="company_name" class="text" value="{$user.company_name}" /></td></tr>
	<tr><th>公司简介</th><td><input type="text" name="company_description" class="text" value="{$user.company_description}" /></td></tr>
	<tr><th>从事行业</th><td><input type="text" name="business" class="text" value="{$user.business}" /></td></tr>
	<tr><th>个人职位</th><td><input type="text" name="position" class="text" value="{$user.position}" /></td></tr>
	<tr><th>开始工作年份</th><td>
		{html_select_date prefix="Work" time=$work_time start_year="-50" end_year="+0"}
	</td></tr>
					<tr><td colspan="2" class="center">
						<input class="button" type="submit" name="submit" value="保存" />
						<input class="button" type="submit" name="submit" value="重填" />
					</td></tr>
				</table>
			</form>
			</div>
		</div>
		<div class="page_block">
			<a name="other"></a>
			<div class="page_block_title"><h2>其他设置</h2></div>
			<div class="page_block_body">
			<form action="?Profile-doUpdateOther" method="post">
				<table class="info_tab">
	<tr><th>头像</th><td><img src="{$user.photo_url}" /></td></tr>
	<tr><th>更改头像</th><td><input type="file" name="position" class="text" /></td></tr>
	<tr><th>隐私策略</th><td>
		<select name="privacy">
			<option value="1">所有人可见</option>
			<option value="2">只有好友可见</option>
			<option value="3">只有我自己可见</option>
		</select>
	</td></tr>
	<tr><th>积分</th><td>{$user.score}</td></tr>
	<tr><th>注册时间</th><td>{$user.regdate}</td></tr>
					<tr><td colspan="2" class="center">
						<input class="button" type="submit" name="submit" value="保存" />
						<input class="button" type="submit" name="submit" value="重填" />
					</td></tr>
				</table>
			</form>
			</div>
		</div>
		<div class="page_block">
			<a name="changepw"></a>
			<div class="page_block_title"><h2>更改密码</h2></div>
			<div class="page_block_body">
			<form action="?Profile-doUpdatePw" method="post">
				<table class="info_tab">
	<tr><th>旧密码</th><td><input type="text" name="password" class="text" /></td></tr>
	<tr><th>新密码</th><td><input type="text" name="new_password" class="text" /></td></tr>
	<tr><th>重复新密码</th><td><input type="text" name="new_password2" class="text" /></td></tr>
					<tr><td colspan="2" class="center">
						<input class="button" type="submit" name="submit" value="保存" />
						<input class="button" type="submit" name="submit" value="重填" />
					</td></tr>
				</table>
			</form>
			</div>
		</div>
	</div>
</div>
{include file="footer.tpl"}
